import request from "@/utils/request";
// 体质列表
export function constitutionTypeList(query) {
  return request({
    url: "/commodity/symptom/list",
    method: "get",
    params: query,
  });
}
// 添加体质
export function constitutionTypeAdd(data) {
  return request({
    url: "/commodity/symptom/add",
    method: "post",
    data,
  });
}
// 编辑
export function constitutionTypeEdit(data) {
  return request({
    url: "/commodity/symptom/edit",
    method: "put",
    data,
  });
}
//  查询
export function constitutionTypeQuery(id) {
  return request({
    url: "/commodity/symptom/query/" + id,
    method: "get",
  });
}

// 删除
export function constitutionTypeDelete(id) {
  return request({
    url: "/commodity/symptom/delete/" + id,
    method: "delete",
  });
}
// 修改状态和排序
export function constitutionTypeChangeData(data) {
  return request({
    url: "/commodity/symptom/changeData",
    method: "put",
    data,
  });
}
// 体质列表不分页
export function constitutionTypeAllList(query) {
  return request({
    url: "/commodity/symptom/allList",
    method: "get",
    params: query,
  });
}
